import request from '@/utils/request'

export default{
    getEducationList() {
        return request({
          url: `/education/selectEducationAll`,
          method: `get`
        })
    },

    getEducationById(id) {
      return request({
        url: `/education/getEducationById/${id}`,
        method: `get`
      })
    },

    insertEducation(education) {
      return request({
        url: `/education/insertEducation`,
        method: `post`,
        data: education
      })
    },

    updateEducation(education) {
      return request({
        url: `/education/updateEducation`,
        method: `post`,
        data: education
      })
    },

    deleteEducationById(id) {
      return request({
        url: `/education/deleteEducationById/${id}`,
        method: `delete`
      })
    },
}